package main

import "fmt"

/**
 * @author: guangcheng
 * @date:   2020/11/3 12:17
 * @version  V1.0
 * @description:
 *
 */
func main() {

	fmt.Println(-2 ^ 3)  //-3
	fmt.Println(-1 << 2) //-4
	// 1000 0001 --> 1111 1110 --> 1111 1111 --> 1111 1100
	// 1111 1100 --> 1111 1011 --> 1000 0100 --> -4
}
